FROM alpine:latest

LABEL maintainer="Zheng Qijun <zhengqijun0121@qq.com>"

RUN sed -i 's/dl-cdn.alpinelinux.org/mirror.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && apk update && \
    apk add --no-cache -U make cmake git build-base libtool perl openssl zip gettext dpkg wget curl && \
    rm -rf /var/cache/apk/* && \
    echo 'root:111111' | chpasswd && \
    git config --global user.name 'zhengqijun' && \
    git config --global user.email 'zhengqijun0121@qq.com' && \
    git clone https://gitee.com/zhengqijun/neovim ~/Workspace/neovim

#    make CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=/usr/local

ENV SHELL /bin/sh
ENV HOME /root/Workspace/neovim
ENV USER root
ENV USERNAME root

WORKDIR $HOME

# ENTRYPOINT ["/bin/sh"]

EXPOSE 22

# EOF

